package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;
import com.aiyige.model.eshop.Order;
import com.aiyige.model.eshop.OrderCreateModel;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * 修改数量
 * Created by xiachao 20180528
 */

public class OrderChangeQuantityRequest {


    Order order;

    private OrderChangeQuantityRequest(Builder builder) {
        order = builder.order;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private Order order;

        public Builder() {
        }

        public Builder order(Order val) {
            order = val;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().changeQuantity(order);
        }
    }
}
